package com.maxjay.component.simplelist.model;

import com.maxjay.component.metadata.model.EntityField;
import com.maxjay.component.simplelist.constant.CompareType;

public class DefaultQueryConditionField implements QueryConditionField {
	
	private CompareType compareType = CompareType.EQUAL;
	
	private EntityField entityField;
	
	public DefaultQueryConditionField(EntityField entityField, String compareTypeStr) {
		this.entityField = entityField;
		this.compareType = CompareType.valueOf(compareTypeStr);
	}

	@Override
	public CompareType getCompareType() {
		return compareType;
	}
	
	public void setCompareType(CompareType compareType) {
		this.compareType = compareType;
	}

	public EntityField getEntityField() {
		return entityField;
	}

	public void setEntityField(EntityField entityField) {
		this.entityField = entityField;
	}
	
}
